package com.bw.module_home.model.api

import com.bw.lib_net.BaseResponse
import com.bw.module_home.model.entity.RecommendVideoEntityItem
import com.bw.module_home.model.entity.SimpleTypeEntity
import com.bw.module_home.model.entity.SimpleVideoEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface HomeApi {

    @GET("/videotype/getSimpleType")
    suspend fun getSimpleType(): BaseResponse<List<SimpleTypeEntity>>

    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String,@Query("page") page: Int,@Query("pagesize") pagesize: Int): BaseResponse<List<SimpleVideoEntity>>

    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page:Int, @Query("pagesize") pagesize:Int): BaseResponse<List<RecommendVideoEntityItem>>
}